<!-- BEGIN PAGE HEADER-->
<?php $this->load->view('partials/breadcrumb.tpl') ?>
<!-- END PAGE HEADER-->
<style>
    body > div.page-container > div.page-content-wrapper > div > div.page-bar > div > div{
        display: none;
    }
</style>
<div class="row">
    <div class="col-xs-12">
        <!-- Begin: life time stats -->
        <div class="portlet">
            <?= form_open('', Array('class' => 'form-inline', 'role' => 'form')) ?>

            <?= search_form_dropdown('route', array('' => '选择操作类型...') + [ 'add' => '添加','edit' => '编辑', 'delete' => '删除' ], filterValue('route'), '操作类型', 'class="form-control input-xs"'); ?>

            <?= search_form_dropdown('in_out', array('' => '选择出入库...') + [ '0' => '出库','1' => '入库' ], filterValue('in_out'), '出入库', 'class="form-control input-xs"'); ?>
            <div style="clear:both;height:14px;"></div>
            <?= search_form_input('log_number_perpage', filterValue('log_number_perpage'), '每页显示条数', 'class="form-control input-xs"'); ?>

            <div class="input-group input-large date-picker input-daterange" data-date="" data-date-format="yyyy-mm-dd">
                <input type="text" class="form-control" name="log_create_time_begin" value="<?= filterValue('log_create_time_begin') ?>" placeholder="操作开始时间" autoComplete="off">
                <span class="input-group-addon">to </span>
                <input type="text" class="form-control" name="log_create_time_end" value="<?= filterValue('log_create_time_end') ?>" placeholder="操作结束时间" autoComplete="off">
            </div>

            <button type="button" class="btn default" id="reset">重置条件</button>
            <button type="submit" class="btn green about_search">搜索 <i class="fa fa-search"></i></button>

            <?= form_close() ?>
            <div class="portlet-body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-scrollable">
                            <form action="<?= site_url('shipping/warehouse_out/add') ?>" method="post" id="app-ids">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead class="flip-content">
                                    <tr>
                                        <th width="10%">操作人</th>
                                        <th width="12%">操作时间</th>
                                        <th width="78%">操作内容</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach ($list as $v) { ?>
                                        <tr>
                                            <td class="numeric"><?= $allPurchaser[$v->user_id] ?></td>
                                            <td class="numeric"><?= date('Y-m-d H:i', $v->create_time) ?></td>
                                            <td class="numeric"><?= $v->content ?></td>
                                        </tr>
                                    <?php } ?>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 text-right">
                        <?= $pagination ?>
                    </div>
                </div>
            </div>
        </div>
        <!-- End: life time stats -->
    </div>
</div>


<script>
    function defConfirm(url) {
        if (!confirm("谨慎操作，删除后不可撤回，确定要删除吗？")) {
            return false;
        }
        window.location.href = url;
        return true;
    }
    $(document).ready(function () {
        $("#reset").click(function () {
            var SelectArr = $("select");
            $("input[type='text']").val('');
            SelectArr.val('');
        });

    });
</script>